# run 34_udpAudioReceive first and then 33_udpAudioSend

setGlobalDuration(-1)

beginPythonInst(1)
playSound(amplitude=.3, duration=12, out='snd')
endPythonInst()

pinkNoise(out='noise')

udpAudioSend(input=['snd', 'noise'], port=[7779, 7781])

proc = startCsound()

# play sound by calling s() in the interpreter
def s():
    sendEvent(1, {}, proc)


